<?php

use think\facade\Route;



//商户平台

Route::group(function (){

    /*** 登录开始 ***/

    Route::group(function (){

        Route::rule('/account/getCode','account.Main/getCode');

        Route::rule('/account/login','account.Main/login');

        Route::rule('/account/pwdLogin','account.Main/pwdLogin');

        Route::rule('/account/sms','account.Main/sms');

    });

    /*** 登录结束 ***/



    /*** 需要登录的操作 ***/

    Route::group(function (){

        Route::rule('/account/layout','account.Main/layout');

         Route::rule('/account/editPwd','account.Main/editPwd');

        Route::rule('/account/home','account.Main/home');

        Route::rule('/account/showApp','account.Main/ShowApp');

        Route::rule('/account/createShop','account.Main/createShop');

    })->middleware(\app\platform\middleware\AccountCheck::class);

    /*** 需要登录的操作 ***/

})->middleware(\app\platform\middleware\AccountBase::class);